An instance of a MessageType represents a single message type in the Kanzi message system. More...
Public Member Functions | |
MessageType (MessageRouting routing, Class< MessageArgumentsType > messageArgumentClass) | |
Creates a new message type without a name. More... | |
MessageType (String name, MessageRouting routing, Class< MessageArgumentsType > messageArgumentClass) | |
Creates a new message type. More... | |
boolean | equals (Object object) |
Metaclass | getArgumentsMetaclass () |
Gets the metaclass of the message arguments class associated with the message type. More... | |
String | getName () |
Gets the fully qualified name of the message type in the form "Class.MessageType". More... | |
long | getNative () |
Gets a pointer to the backing C++ instance. More... | |
MessageRouting | getRouting () |
Gets the message routing of the message type. More... | |
MessageTypeWrapper | getWrapper () |
Gets a wrapper for a MessageType object. More... | |
int | hashCode () |
String | toString () |
Gets the string presentation of the MessageType. More... | |
An instance of a MessageType represents a single message type in the Kanzi message system.
A message type exists throughout the lifetime of an application.
To work with the existing message types, use AbstractMessageType.
<MessageArgumentsType> | Associated message arguments class, which holds the property type definitions for the arguments of this message type. If you do not have a message arguments class, you can use the base class MessageArguments. |
MessageType | ( | MessageRouting | routing, |
Class< MessageArgumentsType > | messageArgumentClass | ||
) |
Creates a new message type without a name.
The name is assigned by metadata registration. The name of the message type will have "Message." prefix. Followed by the metaclass' name the message type is being added to, and finally the name of the field that is owning the message type. If the field's name has a "Message" suffix, it gets trimmed from the name.
routing | Type of message routing to use with this message type. |
messageArgumentClass | Class of the associated message-argument type. |
MessageType | ( | String | name, |
MessageRouting | routing, | ||
Class< MessageArgumentsType > | messageArgumentClass | ||
) |
Creates a new message type.
name | Fully qualified name of the message type. |
routing | Type of message routing to use with this message type. |
messageArgumentClass | Class of the associated message-argument type. |
Metaclass getArgumentsMetaclass | ( | ) |
Gets the metaclass of the message arguments class associated with the message type.
String getName | ( | ) |
Gets the fully qualified name of the message type in the form "Class.MessageType".
long getNative | ( | ) |
Gets a pointer to the backing C++ instance.
MessageRouting getRouting | ( | ) |
Gets the message routing of the message type.
MessageTypeWrapper getWrapper | ( | ) |
Gets a wrapper for a MessageType object.
String toString | ( | ) |
Gets the string presentation of the MessageType.